﻿using System;

namespace LabNet.Server.Domain
{
    public abstract class BaseObject : IObjectRemovable
    {

        public long Id { get; set; }
        public DateTime? Created { get; set; }
        public DateTime? Updated { get; set; }

        public long Creator { get; set; }
        public long Updater { get; set; }

        public bool IsRemoved { get; set; }
        public bool IsAdministrator { get; set; }

        public bool Transient()
        {
            return Id.Equals(default(long));
        }
    }
}